item

abstract fun item(key: String): Optional<String>

Returns an Optional that contains the value associated with the given key if it exists in the storage, otherwise an empty Optional.

Parameters

key

the key name of the item to retrieve the value of. Can be empty or blank

Throws

when the frame is closed

if the access to the storage is forbidden for the current document